package com.run.motion.service.impl;

import com.run.motion.entity.FoodDetailType;
import com.run.motion.entity.FoodType;
import com.run.motion.mapper.FoodDetailTypeMapper;
import com.run.motion.mapper.FoodTypeMapper;
import com.run.motion.service.IFoodDetailTypeService;
import com.run.motion.service.IFoodTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tyx-qchk
 * @date 2022/12/5 9:41
 */
@Service
public class FoodDetailTypeServiceImpl implements IFoodDetailTypeService {
    @Autowired
    FoodDetailTypeMapper foodDetailTypeMapper;


    @Override
    public FoodDetailType selectFoodDetailTypeById(String id) {
        return foodDetailTypeMapper.selectFoodDetailTypeById(id);
    }

    @Override
    public List<FoodDetailType> selectFoodDetailTypeList() {
        return foodDetailTypeMapper.selectFoodDetailTypeList();
    }

    @Override
    public List<FoodDetailType> selectFoodDetailTypeListByFoodTypeId(String foodTypeId) {
        return foodDetailTypeMapper.selectFoodDetailTypeListByFoodTypeId(foodTypeId);
    }

    @Override
    public int insertFoodDetailType(FoodDetailType foodDetailType) {
        return foodDetailTypeMapper.insertFoodDetailType(foodDetailType);
    }

    @Override
    public int updateFoodDetailType(FoodDetailType foodDetailType) {
        return foodDetailTypeMapper.updateFoodDetailType(foodDetailType);
    }

    @Override
    public int deleteFoodDetailTypeById(String id) {
        return foodDetailTypeMapper.deleteFoodDetailTypeById(id);
    }

    @Override
    public int deleteFoodDetailTypeByIds(String[] ids) {
        return foodDetailTypeMapper.deleteFoodDetailTypeByIds(ids);
    }
}
